<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 本案例比较复杂，建议跟着视频一步一步来 */
        *{
            margin: 0;
            padding: 0;
        }
        body{
            perspective: 600px;
            transform-style: preserve-3d;
        }
        .container{
            width: 1000px;
            height: 50px;
            display: flex;
        }
        .box{
            width: 200px;
            height: 50px;
            position: relative;
            transition: all .5s;
            transform-style: preserve-3d;
        }
        .c1,.c2{
            width: 200px;
            height: 50px;
            position: absolute;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 20px;
            color: white;
            user-select: none;
        }
        .c1{
            background-color: pink;
            transform: translateZ(25px);
        }
        .c2{
            background-color: purple;
            transform: translateY(25px) rotateX(-90deg);
        }

        .box:hover{
            transform: rotateX(90deg);
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="box">
            <div class="c1">我是mikaisa</div>
            <div class="c2">我在这里等你</div>
        </div>
        <div class="box">
            <div class="c1">我是mikaisa</div>
            <div class="c2">我在这里等你</div>
        </div>
        <div class="box">
            <div class="c1">我是mikaisa</div>
            <div class="c2">我在这里等你</div>
        </div>
        <div class="box">
            <div class="c1">我是mikaisa</div>
            <div class="c2">我在这里等你</div>
        </div>
        <div class="box">
            <div class="c1">我是mikaisa</div>
            <div class="c2">我在这里等你</div>
        </div>
    </div>
</body>
</html>